<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:79:"/opt/lampp/htdocs/zfshlm_5_0/public/../application/front/view/v2/laotanPay.html";i:1526533724;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>至富通</title>
<meta name='viewport' content="initial-scale=1.0;width=device-width" />
<script>

     function onBridgeReady(){
    WeixinJSBridge.invoke(
        'getBrandWCPayRequest', <?php echo $json;?>,
        function(res){    
            if(res.err_msg == "get_brand_wcpay_request:ok" ) {
                location.href="http://www.zfshlm.com/098f6bcd4621d373cade4e832627b4f6/zfshlm/public/Admin/Verify/shop_discount?moneyNum=<?php echo $moneyNum; ?>&shop_id=<?php echo $shop_id; ?>&username=<?php echo $username; ?>&password=<?php echo $password; ?>&id=<?php echo $id; ?>";
            }   // 使用以上方式判断前端返回,微信团队郑重提示：res.err_msg将在用户支付成功后返回    ok，但并不保证它绝对可靠。
        }
    );
 }

     
    

if (typeof WeixinJSBridge == "undefined"){
    if( document.addEventListener ){
        document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
    }else if (document.attachEvent){
        document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
        document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
    }
 }else{
    onBridgeReady();
 }
</script>
     
     
</body>
</html>
